package com.example.base.mapper;

import com.example.base.entity.Room;
import com.example.base.entity.Unit;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoomMapper {
    List<Room> getRoomsByUnitIdAndGenderGreaterThanCount(Integer unitId, Integer count, String gender);
    void updateRoomRemainById(Integer roomId, Integer remain);
    Integer getUnitIdByRoomId(Integer id);
    List<Room> getAllRooms();
    Room getRoomById(Integer id);
}
